package com.example.asuper.test;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.WindowManager;
import android.widget.TextView;

import org.w3c.dom.Text;

public class Target extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_target);
        Intent intent=getIntent();
        Person p=(Person) intent.getSerializableExtra("objc");
        String id=intent.getStringExtra("id");
        String name=intent.getStringExtra("name");
        TextView tv= (TextView)findViewById(R.id.tv_show);
        tv.setText("id:"+id+"||name:"+name);
        TextView tv_obj=(TextView)findViewById(R.id.rv_showObj);
        tv_obj.setText("id:"+p.getId()+"||name:"+p.getName());
        WindowManager.LayoutParams params=getWindow().getAttributes();
        params.flags=WindowManager.LayoutParams.FLAG_FULLSCREEN;
        getWindow().setAttributes(params);
    }
}
